package com.clwl.supervise.superviseapp.mapper.supervise;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clwl.supervise.superviseapp.entity.supervise.JgTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface JgTemplateMapper extends BaseMapper<JgTemplate> {

    /**
     * 获取企业日常检查检查内容
     * @param supProcess
     */
    List<Map<String,Object>> selectStandardListBySupProcess(@Param("supProcess") String supProcess,@Param("companyTypeId") Long companyTypeId);


    List<Map<String, Object>> selectStandardListByTemplateId(@Param("templateId") Long templateId,@Param("supCategory") String supCategory);

    JgTemplate selectBySupProcess(@Param("supProcess") String supProcess,@Param("companyTypeId") Long companyTypeId,@Param("supCategory") String supCategory);
}